package chixing.day11.work.w9;
public class ApprovalDemo {
    public static void main(String[] args) {
        ApprovalRequest leaveRequest1 = new LeaveRequest(
                "张三", "2023-10-01", "请假", 2);

        ApprovalRequest leaveRequest2 = new LeaveRequest(
                "李四", "2023-10-02", "请假", 5);

        ApprovalRequest expenseRequest1 = new ExpenseRequest(
                "王五", "2023-10-03", "报销", 800);

        ApprovalRequest expenseRequest2 = new ExpenseRequest(
                "赵六", "2023-10-04", "报销", 3000);

        Approver manager = new Manager("主管");
        Approver financial = new Financial("财务");
        Approver hr = new HR("人事");

        manager.approve(leaveRequest1);
        manager.approve(leaveRequest2);
        manager.approve(expenseRequest1);
        manager.approve(expenseRequest2);

        financial.approve(leaveRequest1);
        financial.approve(expenseRequest1);
        financial.approve(expenseRequest2);

        hr.approve(leaveRequest1);
        hr.approve(leaveRequest2);
        hr.approve(expenseRequest1);
    }
}


